<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>查询条件</h5>
            <div class="ibox-tools" style="top:10px;">
            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="housekeepingResourceManageInfo.conditions.resTypeId">
                            <option selected disabled value="">请选择物品类型</option>
                            <option v-for="(item,index) in housekeepingResourceManageInfo.resourceStoreTypes"
                                :value="item.rstId">
                                {{item.name}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="请输入物品名称"
                            v-model="housekeepingResourceManageInfo.conditions.resName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="请输入供应商名称"
                            v-model="housekeepingResourceManageInfo.conditions.supplierName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <button type="button" class="btn btn-primary btn-sm"
                        v-on:click="_queryHousekeepingResourceMethod()">
                        <i class="fa fa-search"></i> 查询
                    </button>
                    <button type="button" class="btn btn-primary btn-sm"
                        v-on:click="_resetHousekeepingResourceMethod()">
                        <i class="fa fa-repeat"></i> 重置
                    </button>
                </div>
            </div>
        </div>

    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>服务物品</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddHousekeepingResourceModal()">
                    <i class="fa fa-plus"></i>添加
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">类型名称</th>
                        <th class="text-center">物品名称</th>
                        <th class="text-center">物品编码</th>
                        <th class="text-center">成本价</th>
                        <th class="text-center">出售价</th>
                        <th class="text-center">库存</th>
                        <th class="text-center">供应商名称</th>
                        <th class="text-center">描述</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="housekeepingResource in housekeepingResourceManageInfo.housekeepingResources">
                        <td class="text-center">{{housekeepingResource.resTypeName}}</td>
                        <td class="text-center">{{housekeepingResource.resName}}</td>
                        <td class="text-center">{{housekeepingResource.resCode}}</td>
                        <td class="text-center">{{housekeepingResource.costPrice}}</td>
                        <td class="text-center">{{housekeepingResource.price}}</td>
                        <td class="text-center">{{housekeepingResource.stock}}</td>
                        <td class="text-center">{{housekeepingResource.supplierName}}</td>
                        <td class="text-center">{{housekeepingResource.remark}}</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditHousekeepingResourceModel(housekeepingResource)">修改
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteHousekeepingResourceModel(housekeepingResource)">删除
                                </button>
                            </div>
                            <div class="btn-group" v-if="housekeepingResource.configId">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openhousekeepingFeeConfigManage(housekeepingResource)">费用
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>

    </div>
    <vc:create path="housekeeping/addHousekeepingResource" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="housekeeping/editHousekeepingResource"></vc:create>
    <vc:create path="housekeeping/deleteHousekeepingResource"></vc:create>
</div>